<template>
	<div class="app">

		<Category title="美食">
			<div class="bottom" slot="s2">
				<a href="http://www.atguigu.com">更多美食</a>
			</div>
			<img :src="foodUrl" slot="s1">
		</Category>

		<Category title="游戏">
			<div class="bottom" slot="s2">
				<a href="http://www.atguigu.com">单机游戏</a>
				<a href="http://www.atguigu.com">网络游戏</a>
			</div>
			<ul slot="s1">
				<li v-for="game in games">{{game}}</li>
			</ul>
		</Category>

		<Category title="电影">
			<div class="bottom" slot="s2">
				<a href="http://www.atguigu.com">经典</a>
				<a href="http://www.atguigu.com">热门</a>
				<a href="http://www.atguigu.com">推荐</a>
			</div>
			<video :src="movieUrl" slot="s1"></video>
		</Category>

	</div>
</template>

<script>
	import Category from './components/Category'

	export default {
		name:'App',
		components:{Category},
		data() {
			return {
				foodUrl:'https://s3.ax1x.com/2021/01/16/srJlq0.jpg',
				games:['王者农药','绝地求生','红色警戒','英雄联盟'],
				movieUrl:'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
			}
		},
	}
</script>

<style>
	.app{
		display: flex;
		justify-content: space-around;
	}
	.bottom{
		display: flex;
		text-align: center;
		justify-content: space-around;
	}
</style>